package models

import (
	"github.com/zeromicro/go-zero/core/stores/cache"
	"github.com/zeromicro/go-zero/core/stores/sqlx"
)

var _ ChapterContentModel = (*customChapterContentModel)(nil)

type (
	// ChapterContentModel is an interface to be customized, add more methods here,
	// and implement the added methods in customChapterContentModel.
	ChapterContentModel interface {
		chapterContentModel
	}

	customChapterContentModel struct {
		*defaultChapterContentModel
	}
)

// NewChapterContentModel returns a model for the database table.
func NewChapterContentModel(conn sqlx.SqlConn, c cache.CacheConf, opts ...cache.Option) ChapterContentModel {
	return &customChapterContentModel{
		defaultChapterContentModel: newChapterContentModel(conn, c, opts...),
	}
}
